home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / devtools / automake-1.0.tar.gz / automake-1.0.tar / automake-1.0 / Makefile.am < prev    next >
Makefile  |  1996-05-25  |  3KB  |  80 lines

  1. ## Process this file with automake to create Makefile.in
  2.  
  3. AUTOMAKE_OPTIONS = gnits
  4. MAINT_CHARSET = latin1
  5. PERL = @PERL@
  6.  
  7. SUBDIRS = tests
  8.  
  9. bin_SCRIPTS = automake
  10. info_TEXINFOS = automake.texi
  11. # SUBDIRS = intl po
  12. # CONFIG_HEADER = config.h
  13.  
  14. pkgdata_DATA = clean-kr.am clean.am compile-kr.am compile-vars.am \
  15. compile.am data.am dejagnu.am depend.am dist-vars.am footer.am \
  16. header.am header-vars.am kr-vars.am libraries.am library.am \
  17. mans-vars.am program.am programs.am remake-hdr.am remake-subd.am \
  18. remake.am scripts.am subdirs.am tags.am tags-subd.am tags-clean.am \
  19. texi-version.am texinfos-vars.am texinfos.am libraries-clean.am \
  20. programs-clean.am data-clean.am COPYING INSTALL texinfo.tex ansi2knr.c \
  21. ansi2knr.1 aclocal.m4
  22.  
  23. ## These must all be executable when installed.
  24. pkgdata_SCRIPTS = config.guess config.sub install-sh mdate-sh mkinstalldirs
  25.  
  26. CLEANFILES = automake
  27.  
  28. # The following requires a fixed version of the Emacs 19.30 etags.
  29. ETAGS_ARGS = automake.in --lang=none \
  30.  --regex='/^@node[ \t]+\([^,]+\)/\1/' automake.texi
  31. TAGS_DEPENDENCIES = automake.in automake.texi
  32.  
  33. ## `test -x' is not portable.  So we use Perl instead.  If Perl
  34. ## doesn't exist, then this test is meaningless anyway.
  35. # Check to make sure some installed files are executable.
  36. installcheck-local:
  37.     $(PERL) -e "exit ! -x '$(pkgdatadir)/config.guess';"
  38.     $(PERL) -e "exit ! -x '$(pkgdatadir)/config.sub';"
  39.     $(PERL) -e "exit ! -x '$(pkgdatadir)/install-sh';"
  40.     $(PERL) -e "exit ! -x '$(pkgdatadir)/mdate-sh';"
  41.     $(PERL) -e "exit ! -x '$(pkgdatadir)/mkinstalldirs';"
  42.  
  43. # Some simple checks:
  44. # * syntax check with perl4 and perl5.
  45. # * make sure the scripts don't use 'true'
  46. # * expect no instances of '${...}'
  47. # These are only really guaranteed to work on my machine.
  48. maintainer-check: automake
  49. ## Do syntax, etc, checks before make check.
  50.     $(PERL) -c -w automake
  51.     @if grep '^[^#].*true' $(srcdir)/[a-z]*.am; then \
  52.       echo "can't use 'true' in GNU Makefile" 1>&2; \
  53.       exit 1;                \
  54.     else :; fi
  55.     @if test `fgrep '$${' $(srcdir)/[a-z]*.am | wc -l` -ne 0; then \
  56.       echo "found too many uses of '\$${'" 1>&2; \
  57.       exit 1;                \
  58.     fi
  59.     if $(SHELL) -c 'perl4.036 -v' >/dev/null 2>&1; then \
  60.       perl4.036 -c -w automake; \
  61.     else :; fi
  62.     $(MAKE) check
  63.  
  64. # Tag before making distribution.  Also, don't make a distribution if
  65. # checks fail.  Also, make sure the NEWS file is up-to-date.
  66. cvs-dist: maintainer-check
  67.     @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
  68.       echo "NEWS not updated; not releasing" 1>&2; \
  69.       exit 1;                \
  70.     fi
  71.     cvs -q tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
  72.     $(MAKE) dist
  73.  
  74. cvs-diff:
  75.     thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
  76.     prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
  77.     prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
  78.     cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
  79.         > $(PACKAGE)-$$prevno-$(VERSION).diff
  80.